#include "head.h"

int main(int argc, char const *argv[])
{
    // 初始化操作
    FlightSystem Flight_Sys = Sys_init();
    U_data user_data;
    S_arr_list * ticket_list = S_Arr_Init();
    S_Arr_File_scanf(ticket_list);
    switch (user_menu())
    {
    case 1:
        user_data = Sys_log_in( Flight_Sys );
        while(1)
        {
            Sys_menu(ticket_list, user_data, Flight_Sys);
            continue;
        }
        break;
    case 2:
        Sign_in(Flight_Sys);
        break;
    case 3:
        return 0;
    }
    return 0;
}